class sup {
	static String y = "test";
	static{
		System.out.println("sup static");
	}
	sup(){
		System.out.println("const");
	}
	static public void m1(){
		System.out.println("m1");
	}
	/*public void m(){
		System.out.println("super");
	}*/
}


public class InhertDemo extends sup{
	static String y = "xyz";
	static{
		System.out.println("InhertDemo static");
	}
	static public void m1(){
		System.out.println("m2");
	}
	/*int a;
	InhertDemo(){
		super(12);
		System.out.println("sub");
	}
	public void m(){
		super.m();
		System.out.println("submmm");
	}*/

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		/*InhertDemo i = new InhertDemo();
		i.a = 10;
		System.out.println(i.a);
		i.m();*/
		System.out.println(sup.y);
		sup.m1();
		InhertDemo.m1();
		System.out.println("sample codefhjkdshgfjdshf s");
	}

}
